//==========================================================================
// Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
//==========================================================================

#ifndef __ELASTOS_FLASHCTRL_H__
#define __ELASTOS_FLASHCTRL_H__

#ifdef __cplusplus
extern "C" {
#endif

typedef struct FlashInfo {
    UInt32 Size;
    UInt32 EraseUnitSize;
} FlashInfo;

typedef enum FlashControl {
    FlashControl_Open               = 0,
    FlashControl_EraseSector,
    FlashControl_GetInfo,
    FlashControl_MapToUserSpace
} FlashControl;

#ifdef __cplusplus
}
#endif

#endif // __ELASTOS_FLASHCTRL_H__

